  <form action="<?php echo $PHP_SELF; ?>" method="POST">

	<h3>Location</h3>
	<input type="hidden" name="id" value="<?php echo $c->location->id; ?>"/>
	<table id="data">
		<tr><th>Name:</th><td><input type="text" name="name" value="<?php echo $c->location->name; ?>" /></td></tr>

    	<tr><th>Address:</th><td><div id="addressDiv">
    		<?php echo tableDropdown("address_id", $c->location->address_id, $c->addresses, "line1, city, state, zip"); ?>
    		<small><?php echo HtmlUtil::internalAsynchLink("[new]", "address", $userRoles); ?></small></div>
    	</td></tr>
    	<tr><td>&nbsp;</td><td><input type="submit" name="action" value="Save" /><input type="submit" name="action" value="Cancel" /></td></tr>
    </table>

   <br/>
    <?php
     foreach ($c->locations as $location)
     {
       ?><br/><a href="<?php echo $PHP_SELF; ?>&action=Load&id=<?php echo $location->id; ?>"><?php echo $location->name ?></a><?php
     }
    ?>
  </form>